package zouran.service;

import org.springframework.transaction.annotation.Transactional;
import zouran.entity.Distance;
import zouran.entity.Hospital;

import java.util.HashMap;
import java.util.List;

/**
 * Author：zouran
 * Date：2023/3/31  20:55
 * Description:
 */
@Transactional
public interface HospitalService {
    List<Hospital> getAllHospital();

    Hospital getHospitalByHospitalId(long id);

    List<Hospital> getAllNearHospitalByPosition(Double lon, Double lat, Double lonDistance, Double latDistance);

    List<HashMap<String, Object>> getAllNearHospitalPositionByPosition(Double lon, Double lat, Double lonDistance, Double latDistance);

    List<Hospital> getAllNearHospitalByEarthquakeId(long id);

    List<HashMap<String, Object>> getAllNearHospitalPositionByEarthquakeId(long id);

    Distance getNearestHospitalByPosition(double lng, double lat);

    HashMap<String, Object> getHospitalIdRange();
}
